package service;

import entity.Lesson;
import java.util.ArrayList;

public interface LessonService {

    public abstract ArrayList<Lesson> findLessons(String username) throws Exception;

    public abstract Lesson findByCode(String code);

    public abstract int insert(Lesson lesson);

    public abstract int update(Lesson lesson);

    public abstract int disapprove(String lessoncode,String student,String disapprovereason) throws Exception;

    public abstract int apply(String lessoncode,String student,String applyreason) throws Exception;

    public abstract int updatestatus(String lessoncode,String student,String status,boolean flag) throws Exception;
}
